package com.ddone.transaction.xml.service.impl;

import com.ddone.transaction.xml.dao.EmpDao;
import com.ddone.transaction.xml.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author ddone
 * @date 2024/3/21-02:07
 */
public class EmpServiceImpl implements EmpService {

    @Autowired
    private EmpDao empDao;

    @Override
    public void transfer(Integer inId, Integer outId, int money) {
        empDao.addMoney(inId,money);
        empDao.subMoney(outId,money);
    }
}
